import os

# --------------------------
# 🗂️ 基础目录配置
# --------------------------
# 项目根目录，可手动修改为绝对路径
base_dir = os.path.abspath("/data_products/workspace/data4/merge_catalog/")

# --------------------------
# 📁 输入路径配置
# --------------------------
# XP 光谱星表目录（例如 EBV 切分目录）
path_xpcat = "/software/catalog/CorrectedXPspecV1_mag_pa_split_ebv/"

# GAIA 参考星表目录
path_cat = "/software/catalog/GaiaDR3FITS_pm_ref/"

# --------------------------
# 📁 输出路径
# --------------------------
filesavedir = os.path.join(base_dir, "filesavedir")  # 或直接指定绝对路径

# --------------------------
# 🧾 所需字段
# --------------------------
need_column = [
    'NUMBER', 'ALPHA_J2000', 'DELTA_J2000',
    'MAG_AUTO_S', 'MAGERR_AUTO_S',
    'FLAGS', 'FLAG_PPP',
    'FLUX_AUTO', 'FLUX_MAX', 'SNR_WIN',
    'X_IMAGE', 'Y_IMAGE', 'FWHM_IMAGE', 'ELLIPTICITY',
    'MAG_APERCORR_S',
    'MAGERR_APERCORR_S',
    'FLUX_APERCORR',
    'SNR_APERCORR'
]

# --------------------------
# 🛢️ 数据库连接（只读账号）
# --------------------------
db_url = 'mysql+pymysql://readonly_user:readonly_password@192.168.16.70/mephisto_observation'
